str1 = 'abcdefg'
list1 = [10,20,30,40]
# max() 最大值
print(max(str1))
print(max(list1))
# min() 最小值
print(min(str1))
print(min(list1))